package com.example.user.event;

import com.example.user.entity.User;
import org.springframework.context.ApplicationEvent;

/**
 * 自定义事件：关键日志事件
 * @author vanson
 */
public class KeyLogEvent extends ApplicationEvent {
    private User user;

    public User getUser() {
        return user;
    }

    public KeyLogEvent(Object source) {
        super(source);
        this.user = (User) source;
    }
}
